import openpyxl


class ReadExcel:
    @staticmethod
    def read_excel(file_name, sheet_name):
        wb = openpyxl.load_workbook(file_name)
        sheet = wb[sheet_name]
        data = [[sheet.cell(row=i, column=j).value for j in range(1, sheet.max_column + 1)] for i in
                range(2, sheet.max_row + 1)]
        return data


if __name__ == '__main__':
    r = ReadExcel.read_excel('user.xlsx', 'user')
    print(r)
